//package com.sxkf.template.controller;
//
//
//import com.baomidou.mybatisplus.core.metadata.IPage;
//import com.sxkf.core.api.vo.R;
//import com.sxkf.template.entity.FollowUser;
//import com.sxkf.template.entity.User;
//import com.sxkf.template.service.FollowUserService;
//import com.sxkf.template.service.UserService;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiImplicitParam;
//import io.swagger.annotations.ApiImplicitParams;
//import io.swagger.annotations.ApiOperation;
//import org.springframework.web.bind.annotation.*;
//
//import javax.annotation.Resource;
//
///**
// * <p>
// * 前端控制器
// * </p>
// *
// * @author 张广成
// * @since 2024-11-06 10:16:40
// */
//@Api(tags = "关注用户模块")
//@RestController
//@RequestMapping("/followUser")
//public class FollowUserController {
//    @Resource
//    private FollowUserService followUserService;
//
//    @Resource
//    private UserService userService;
//
//    @ApiOperation("创建我关注用户信息(回关也可以用)")
//    @PostMapping("/createFollowUser")
//    public R<Boolean> createFollowUser(@RequestBody FollowUser followUser) {
//        return R.success(followUserService.createFollowUser(followUser));
//    }
//
//    @ApiOperation("取消我关注用户信息")
//    @PostMapping("/cancelFollowUser")
//    public R<Boolean> cancelFollowUser(@RequestBody FollowUser followUser) {
//        return R.success(followUserService.cancelFollowUser(followUser));
//    }
//
//    @ApiImplicitParams(value = {
//            @ApiImplicitParam(name = "orderType", value = "1=综合，2=最新，3=最早")
//    })
//    @ApiOperation("展示我关注的用户")
//    @GetMapping("/selectFollowUser")
//    public R<IPage<User>> selectFollowUser(@RequestParam String userId, @RequestParam String orderType,
//                                           @RequestParam Integer pageNo, @RequestParam Integer pageSize) {
//        return R.success(followUserService.selectFollowUser(userId, orderType, pageNo, pageSize));
//    }
//    @ApiImplicitParams(value = {
//            @ApiImplicitParam(name = "orderType", value = "1=综合，2=最新，3=最早")
//    })
//    @ApiOperation("模糊查询关注的用户")
//    @GetMapping("/likeQuery")
//    public R<IPage<User>> likeQuery(@RequestParam String userId, @RequestParam String nickName, @RequestParam String orderType,
//                                    @RequestParam Integer pageNo, @RequestParam Integer pageSize) {
//        return R.success(followUserService.likeQuery(userId, nickName, orderType, pageNo, pageSize));
//    }
//
//
//    @ApiImplicitParams(value = {
//            @ApiImplicitParam(name = "orderType", value = "1=综合，2=最新，3=最早")
//    })
//    @ApiOperation("查看关注我的粉丝")
//    @GetMapping("/getFans")
//    public R<IPage<User>> getFans(@RequestParam String userId,
//                                  @RequestParam String orderType,
//                                  @RequestParam Integer pageNo,
//                                  @RequestParam Integer pageSize) {
//        return R.success(followUserService.getFans(userId,orderType,pageNo,pageSize));
//    }
//
//    @ApiImplicitParams(value = {
//            @ApiImplicitParam(name = "orderType", value = "1=综合，2=最新，3=最早")
//    })
//    @ApiOperation("模糊查询粉丝用户")
//    @GetMapping("/likeQueryFans")
//    public R<IPage<User>> likeQueryFans(@RequestParam String userId,
//                                        @RequestParam String nickName,
//                                        @RequestParam String orderType,
//                                        @RequestParam Integer pageNo,
//                                        @RequestParam Integer pageSize) {
//        return R.success(followUserService.likeQueryFans(userId, nickName, orderType, pageNo, pageSize));
//    }
//
//}
